﻿Public Partial Class Admin
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        If User.IsInRole("users") Then
            MsgBox("This page for administrator you are NOT allowed to access,the system will redirect you to the main page", MsgBoxStyle.Critical, "Warring")
            Response.Redirect("Default.aspx")
        End If

    End Sub

End Class